/* 平板设备 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .style-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .progress-details {
        grid-template-columns: 1fr;
    }
    
    .result-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .result-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* 手机设备 */
@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .method-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        padding: 10px;
    }
    
    .style-options {
        grid-template-columns: 1fr;
    }
    
    .btn-generate {
        width: 100%;
        padding: 12px 20px;
    }
    
    .comic-viewer {
        padding: 10px;
    }
    
    .page-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .page-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* 大屏设备 */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .style-options {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 高分辨率屏幕 */
@media (min-resolution: 192dpi) {
    .style-preview {
        border-width: 0.5px;
    }
}

/* 打印样式 */
@media print {
    .header,
    .input-section,
    .progress-section,
    .result-actions,
    .footer {
        display: none !important;
    }
    
    .comic-page {
        box-shadow: none;
        border: 1px solid #000;
        margin-bottom: 20mm;
        page-break-after: always;
    }
    
    .comic-viewer {
        background: white;
        border: none;
        padding: 0;
    }
}